<div class="row mt">
	<div class="col-lg-12">
		<div class="content-panel">
			<h4><i class="fa fa-angle-right"></i> Tratamientos</h4>
			<section id="unseen">
				<table class="table table-bordered table-striped table-condensed">
					<thead>
						<tr>
							<th><?php echo $this->Paginator->sort('nombre'); ?></th>
							<th class="numeric"><?php echo $this->Paginator->sort('sesiones'); ?></th>
							<th class="numeric"><?php echo $this->Paginator->sort('valor'); ?></th>
							<th class="numeric"><?php echo $this->Paginator->sort('estado'); ?></th>
							<th><?php echo $this->Paginator->sort('categoria_id'); ?></th>
							<th class="numeric"><?php echo __('Actions'); ?></th>
						</tr>
					</thead>
					<tbody>
						<?php foreach ($tratamientos as $tratamiento): ?>
							<tr>
								<td><?php echo h($tratamiento['Tratamiento']['nombre']); ?>&nbsp;</td>
								<td class="numeric"><?php echo h($tratamiento['Tratamiento']['sesiones']); ?>&nbsp;</td>
								<td class="numeric"><?php echo h($tratamiento['Tratamiento']['valor']); ?>&nbsp;</td>
								<td class="numeric"><?php echo h($tratamiento['Tratamiento']['estado']); ?>&nbsp;</td>
								<td>
									<?php echo $this->Html->link($tratamiento['Categoria']['nombre'], array('controller' => 'categorias', 'action' => 'view', $tratamiento['Categoria']['id'])); ?>
								</td>
								<td class="numeric">
								<?php echo $this->Html->link('<i class="fa fa-eye"></i>', array('action' => 'view', $tratamiento['Tratamiento']['id']), array('escape' => false)); ?>&nbsp;&nbsp;
									<?php echo $this->Html->link('<i class="fa fa-edit"></i>', array('action' => 'edit', $tratamiento['Tratamiento']['id']), array('escape' => false)); ?>&nbsp;&nbsp;
									<?php echo $this->Form->postLink('<i class="fa fa-trash-o"></i>', array('action' => 'delete', $tratamiento['Tratamiento']['id']), array('escape' => false), __('Are you sure you want to delete # %s?', $tratamiento['Tratamiento']['id'])); ?>
								</td>
							</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			</section>
		</div><!-- /content-panel -->
	</div><!-- /col-lg-12 -->			
</div><!-- /row -->


	<p><?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
